package org.pearl.validation.demo.mapstruct;

/**
 * Created by TD on 2021/6/3
 */
public class Test {
    public static void main(String[] args) {
        Car car = new Car();
        car.setMake("make");
        car.setNumberOfSeats(100);
        car.setType("type");
        Driver driver = new Driver();
        driver.setName("driver");
        Person person = new Person();
        person.setName("lisan");
        car.setPerson(person);

        CarDto carDto = CarMapper.INSTANCE.car2CarDto(car);
        System.out.println(carDto);


/*        CarDto carDto1=new CarDto();
        carDto1.setMake("carDto1.setMak");
        CarMapper.INSTANCE.updateCarFromDto(carDto1,car);
        System.out.println(car);*/
    }
}
